/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.team1160.beta.season2011.output.DSOutput;

import com.team1160.beta.season2011.output.OutputCommand;

/**
 *
 * @author sakekasi
 */
public class DSOutputCommand extends OutputCommand{
    public static final int CAM_LEFT=5,CAM_CENTER=6,CAM_RIGHT=7;

    public DSOutputCommand(int cam) {
        super();
        this.data[DSOutputCommand.CAM_LEFT]=(cam==DSOutputCommand.CAM_LEFT)?1:0;
        this.data[DSOutputCommand.CAM_RIGHT]=(cam==DSOutputCommand.CAM_RIGHT)?1:0;
        this.data[DSOutputCommand.CAM_CENTER]=(cam==DSOutputCommand.CAM_CENTER)?1:0;
    }



    public double[] getData() {
        return new double[]{this.data[DSOutputCommand.CAM_LEFT],
                            this.data[DSOutputCommand.CAM_RIGHT],
                            this.data[DSOutputCommand.CAM_CENTER]};
    }

    public void setData(double[] command) {
        this.data=command;
    }

}
